package cc.yugu.yhdw.webserver.service.basic;

import cc.yugu.yhdw.common.domain.basic.AdImage;
import cc.yugu.yhdw.common.domain.basic.AppGrade;
import cc.yugu.yhdw.common.domain.basic.SignInLog;
import cc.yugu.yhdw.common.entity.pagination.Page;
import cc.yugu.yhdw.webserver.persistence.basic.SignInLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 签到功能业务
 * 
 * @Date:Created in 2018/7/5 10:43
 * @Author:
 * @Modified By: zjn 2018/7/5 10:43
 */ 
@Service
public class SignInLogService {

    @Autowired
    SignInLogMapper signInLogMapper;
    /**
    * 分页查询
    * 
    * @Param: [search]
    * @Return: cc.yugu.yhdw.common.entity.pagination.Page
    * @Author By: zjn 2018/7/5  10:44
    */ 
    public Page findPage(SignInLog search) {
        Page page = search.buildPage();
        page.setTotalItems(signInLogMapper.findPageCount(search));
        search.setBeginIndex(page.getOffset());
        page.setResult(signInLogMapper.findPageResult(search));
        return page;
    }



}
